package com.bondex.charter.maindata;

import com.bondex.charter.maindata.service.MainDataService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ApiConfig {

    @Value("${charter.basicData.address}")
    private String MAINDATA_URL;

    @Bean
    public MainDataService creatMainDataService(){
        return new MainDataService(MAINDATA_URL);
    }
}
